import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const push = VueRouter.prototype.push
const replace = VueRouter.prototype.replace

VueRouter.prototype.push = function (location, resolve = () => { }, reject = () => { }) {
    return push.call(this, location, resolve, reject)
}

VueRouter.prototype.replace = function (location, resolve = () => { }, reject = () => { }) {
    return replace.call(this, location, resolve, reject)
}


const router = new VueRouter({
    mode: "hash",
    routes: [],
})

export default router